import {http} from "@/interceptor/luch-request/index.js"
// 创建班级
export const saveClass = (data) => {
    return http.post("api/admin/class/v1/saveClass", data,{
	header:{
			"content-type": "application/json"
		}
	});	
}
// 班级列表
export const pageClass = (data) => {
	return http.get("api/admin/class/v1/pageClass", {
		data: data
	});
}

 // 删除班级
export const deleteClass = (id) => {
 	return http.delete("api/admin/class/v1/deleteClass/"+id, {
 		header:{
 			"content-type": "application/x-www-form-urlencoded"
 		}
 	});
}
 
// 编辑班级
export const updateClass = (data) => {
    return http.put("api/admin/class/v1/updateClass",data,{
		header:{
			"content-type": "application/json"
		}
	});	
} 

// 升班
export const newClass = (data) => {
    return http.post("api/admin/class/v1/newClass", data,{
	header:{
			"content-type": "application/json"
		}
	});	
}


// 毕业
export const graduate = (data) => {
    return http.post("api/admin/class/v1/graduate", data,{
	header:{
			"content-type": "application/json"
		}
	});	
}
